home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / thinkref / archive / THINKPascalUH2.1.sea / THINKPas Univ Hdr 2.1 / Interfaces / GXErrors.p < prev    next >
Text File  |  1995-09-14  |  26KB  |  715 lines

  1. { Converted with MPW2TPas Tuesday, September 12, 1995 6:39:50 PM }
  2. {}
  3. {     File:        GXErrors.p}
  4. { }
  5. {     Contains:    QuickDraw GX error constants and debugging routines}
  6. { }
  7. {     Version:    Technology:    Quickdraw GX 1.1}
  8. {                 Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18}
  9. { }
  10. {     Copyright:    © 1984-1995 by Apple Computer, Inc.}
  11. {                 All rights reserved.}
  12. { }
  13. {     Bugs?:        If you find a problem with this file, use the Apple Bug Reporter}
  14. {                 stack.  Include the file and version information (from above)}
  15. {                 in the problem description and send to:}
  16. {                     Internet:    apple.bugs@applelink.apple.com}
  17. {                     AppleLink:    APPLE.BUGS}
  18. { }
  19. {}
  20.  
  21. unit GXErrors;
  22. interface
  23.  
  24.  
  25. {$IFC UNDEFINED __GXERRORS__}
  26. {$SETC __GXERRORS__ := 1}
  27.  
  28.     uses
  29.         ConditionalMacros, Types, MixedMode, GXMath, GXTypes;
  30.  
  31. { $PUSH}
  32. { $ALIGN MAC68K}
  33. { $LibExport+}
  34. {$SETC graphicsErrorsIncludes := 1}
  35.  
  36.     const
  37.         gxFirstSystemError = -27999;                        { 0xffff92a1 }
  38.         gxFirstFatalError = -27999;
  39.         gxLastFatalError = -27951;
  40.         gxFirstNonfatalError = -27950;
  41.         gxFirstFontScalerError = -27900;
  42.         gxLastFontScalerError = -27851;
  43.         gxFirstParameterError = -27850;
  44.         gxFirstImplementationLimitError = -27800;
  45.         gxFirstSystemDebuggingError = -27700;
  46.         gxLastSystemError = -27000;                        { 0xffff9688 }
  47.         gxFirstLibraryError = 1048576;                        { 0x00100000 }
  48.         gxLastLibraryError = 2097151;                        { 0x001fffff }
  49.         gxFirstAppError = 2097152;                        { 0x00200000 }
  50.         gxLastAppError = 4194303;                        { 0x003fffff }
  51.         gxFirstSystemWarning = -26999;                        { 0xffff9689 }
  52.         gxFirstResultOutOfRangeWarning = -26950;
  53.         gxFirstParameterOutOfRangeWarning = -26900;
  54.         gxFirstFontScalerWarning = -26850;
  55.         gxFirstSystemDebuggingWarning = -26700;
  56.         gxLastSystemWarning = -26000;                        { 0xffff9a70 }
  57.         gxFirstLibraryWarning = 4194304;                        { 0x00400000 }
  58.         gxLastLibraryWarning = 5242879;                        { 0x004fffff }
  59.         gxFirstAppWarning = 5242880;                        { 0x00500000 }
  60.         gxLastAppWarning = 7340031;                        { 0x006fffff }
  61.         gxFirstSystemNotice = -25999;                        { 0xffff9a71 }
  62.         gxLastSystemNotice = -25500;                        { 0xffff9c64 }
  63.         gxFirstLibraryNotice = 7340032;                        { 0x00700000 }
  64.         gxLastLibraryNotice = 7602175;                        { 0x0073ffff }
  65.         gxFirstAppNotice = 7602176;                        { 0x00740000 }
  66.         gxLastAppNotice = 8388607;                        { 0x007fffff }
  67.  
  68. { truly fatal errors }
  69.         out_of_memory = gxFirstFatalError;
  70.         internal_fatal_error = -27998;
  71.         no_outline_font_found = -27997;
  72.         not_enough_memory_for_graphics_client_heap = -27996;
  73.         could_not_create_backing_store = -27995;
  74. { internal errors }
  75.         internal_error = gxFirstNonfatalError;
  76.         internal_font_error = -27949;
  77.         internal_layout_error = -27948;
  78. { recoverable errors }
  79.         could_not_dispose_backing_store = -27946;
  80.         unflattening_interrupted_by_client = -27945;
  81. { font manager errors }
  82.         font_cannot_be_changed = -27944;
  83.         illegal_font_parameter = -27943;
  84. { gxFont scaler errors }
  85.         null_font_scaler_context = gxFirstFontScalerError;
  86.         null_font_scaler_input = -27899;
  87.         invalid_font_scaler_context = -27898;
  88.         invalid_font_scaler_input = -27897;
  89.         invalid_font_scaler_font_data = -27896;
  90.         font_scaler_newblock_failed = -27895;
  91.         font_scaler_getfonttable_failed = -27894;
  92.         font_scaler_bitmap_allocation_failed = -27893;
  93.         font_scaler_outline_allocation_failed = -27892;
  94.         required_font_scaler_table_missing = -27891;
  95.         unsupported_font_scaler_outline_format = -27890;
  96.         unsupported_font_scaler_stream_format = -27889;
  97.         unsupported_font_scaler_font_format = -27888;
  98.         font_scaler_hinting_error = -27887;
  99.         font_scaler_rasterizer_error = -27886;
  100.         font_scaler_internal_error = -27885;
  101.         font_scaler_invalid_matrix = -27884;
  102.         font_scaler_fixed_overflow = -27883;
  103.         font_scaler_api_version_mismatch = -27882;
  104.         font_scaler_streaming_aborted = -27881;
  105.         unknown_font_scaler_error = -27880;
  106. { bad parameters }
  107.         parameter_is_nil = gxFirstParameterError;
  108.         shape_is_nil = -27849;
  109.         style_is_nil = -27848;
  110.         transform_is_nil = -27847;
  111.         ink_is_nil = -27846;
  112.         transferMode_is_nil = -27845;
  113.         color_is_nil = -27844;
  114.         colorProfile_is_nil = -27843;
  115.         colorSet_is_nil = -27842;
  116.         spoolProcedure_is_nil = -27841;
  117.         tag_is_nil = -27840;
  118.         type_is_nil = -27839;
  119.         mapping_is_nil = -27838;
  120.         invalid_viewDevice_reference = -27837;
  121.         invalid_viewGroup_reference = -27836;
  122.         invalid_viewPort_reference = -27835;
  123. { implementation limits, these should be right before the debugging errors }
  124.         number_of_contours_exceeds_implementation_limit = gxFirstImplementationLimitError;
  125.         number_of_points_exceeds_implementation_limit = -27799;
  126.         size_of_polygon_exceeds_implementation_limit = -27798;
  127.         size_of_path_exceeds_implementation_limit = -27797;
  128.         size_of_text_exceeds_implementation_limit = -27796;
  129.         size_of_bitmap_exceeds_implementation_limit = -27795;
  130.         number_of_colors_exceeds_implementation_limit = -27794;
  131.         procedure_not_reentrant = -27793;
  132.  
  133. { internal debugging errors }
  134.         functionality_unimplemented = gxFirstSystemDebuggingError;
  135.         clip_to_frame_shape_unimplemented = -27699;
  136. { font parameter debugging errors }
  137.         illegal_font_storage_type = -27698;
  138.         illegal_font_storage_reference = -27697;
  139.         illegal_font_attributes = -27696;
  140. { parameter debugging errors }
  141.         parameter_out_of_range = -27695;
  142.         inconsistent_parameters = -27694;
  143.         index_is_less_than_zero = -27693;
  144.         index_is_less_than_one = -27692;
  145.         count_is_less_than_zero = -27691;
  146.         count_is_less_than_one = -27690;
  147.         contour_is_less_than_zero = -27689;
  148.         length_is_less_than_zero = -27688;
  149.         invalid_client_reference = -27687;
  150.         invalid_graphics_heap_start_pointer = -27686;
  151.         invalid_nongraphic_globals_pointer = -27685;
  152.         colorSpace_out_of_range = -27684;
  153.         pattern_lattice_out_of_range = -27683;
  154.         frequency_parameter_out_of_range = -27682;
  155.         tinting_parameter_out_of_range = -27681;
  156.         method_parameter_out_of_range = -27680;
  157.         space_may_not_be_indexed = -27679;
  158.         glyph_index_too_small = -27678;
  159.         no_glyphs_added_to_font = -27677;
  160.         glyph_not_added_to_font = -27676;
  161.         point_does_not_intersect_bitmap = -27675;
  162.         required_font_table_not_present = -27675;
  163.         unknown_font_table_format = -27674; { the styles encoding is not present in the font }
  164.         shapeFill_not_allowed = -27673;
  165.         inverseFill_face_must_set_clipLayer_flag = -27672;
  166.         invalid_transferMode_colorSpace = -27671;
  167.         colorProfile_must_be_nil = -27670;
  168.         bitmap_pixel_size_must_be_1 = -27669;
  169.         empty_shape_not_allowed = -27668;
  170.         ignorePlatformShape_not_allowed = -27667;
  171.         nil_style_in_glyph_not_allowed = -27666;
  172.         complex_glyph_style_not_allowed = -27665;
  173.         invalid_mapping = -27664;
  174.         cannot_set_item_shapes_to_nil = -27663;
  175.         cannot_use_original_item_shapes_when_growing_picture = -27662;
  176.         cannot_add_unspecified_new_glyphs = -27661;
  177.         cannot_dispose_locked_tag = -27660;
  178.         cannot_dispose_locked_shape = -27659;
  179. { restricted access }
  180.         shape_access_not_allowed = -27658;
  181.         colorSet_access_restricted = -27657;
  182.         colorProfile_access_restricted = -27656;
  183.         tag_access_restricted = -27655;
  184.         viewDevice_access_restricted = -27654;
  185.         graphic_type_does_not_have_a_structure = -27653;
  186.         style_run_array_does_not_match_number_of_characters = -27652;
  187.         rectangles_cannot_be_inserted_into = -27651;
  188.         unknown_graphics_heap = -27650;
  189.         graphics_routine_selector_is_obsolete = -27649;
  190.         cannot_set_graphics_client_memory_without_setting_size = -27648;
  191.         graphics_client_memory_too_small = -27647;
  192.         graphics_client_memory_is_already_allocated = -27646;
  193.         viewPort_is_a_window = -27645;
  194. { wrong type/bad reference }
  195.         illegal_type_for_shape = -27644;
  196.         shape_does_not_contain_a_bitmap = -27643;
  197.         shape_does_not_contain_text = -27642;
  198.         picture_expected = -27641;
  199.         bitmap_is_not_resizable = -27640;
  200.         shape_may_not_be_a_bitmap = -27639;
  201.         shape_may_not_be_a_picture = -27638;
  202.         graphic_type_does_not_contain_points = -27637;
  203.         graphic_type_does_not_have_multiple_contours = -27636;
  204.         graphic_type_cannot_be_mapped = -27635;
  205.         graphic_type_cannot_be_moved = -27634;
  206.         graphic_type_cannot_be_scaled = -27633;
  207.         graphic_type_cannot_be_rotated = -27632;
  208.         graphic_type_cannot_be_skewed = -27631;
  209.         graphic_type_cannot_be_reset = -27630;
  210.         graphic_type_cannot_be_dashed = -27629;
  211.         graphic_type_cannot_be_reduced = -27628;
  212.         graphic_type_cannot_be_inset = -27627;
  213.         shape_cannot_be_inverted = -27626;
  214.         shape_does_not_have_area = -27625;
  215.         shape_does_not_have_length = -27624;
  216.         first_glyph_advance_must_be_absolute = -27623;
  217.         picture_cannot_contain_itself = -27622;
  218.         viewPort_cannot_contain_itself = -27621;
  219.         cannot_set_unique_items_attribute_when_picture_contains_items = -27620;
  220.         layer_style_cannot_contain_a_face = -27619;
  221.         layer_glyph_shape_cannot_contain_nil_styles = -27618;
  222. { validation errors }
  223.         object_wrong_type = -27617;
  224.         shape_wrong_type = -27616;
  225.         style_wrong_type = -27615;
  226.         ink_wrong_type = -27614;
  227.         transform_wrong_type = -27613;
  228.         device_wrong_type = -27612;
  229.         port_wrong_type = -27611;
  230. { validation cache errors }
  231.         shape_cache_wrong_type = -27610;
  232.         style_cache_wrong_type = -27609;
  233.         ink_cache_wrong_type = -27608;
  234.         transform_cache_wrong_type = -27607;
  235.         port_cache_wrong_type = -27606;
  236.         shape_cache_parent_mismatch = -27605;
  237.         style_cache_parent_mismatch = -27604;
  238.         ink_cache_parent_mismatch = -27603;
  239.         transform_cache_parent_mismatch = -27602;
  240.         port_cache_parent_mismatch = -27601;
  241.         invalid_shape_cache_port = -27600;
  242.         invalid_shape_cache_device = -27599;
  243.         invalid_ink_cache_port = -27598;
  244.         invalid_ink_cache_device = -27597;
  245.         invalid_style_cache_port = -27596;
  246.         invalid_style_cache_device = -27595;
  247.         invalid_transform_cache_port = -27594;
  248.         invalid_transform_cache_device = -27593;
  249.         recursive_caches = -27592;
  250. { validation shape cache errors }
  251.         invalid_fillShape_ownerCount = -27591;
  252.         recursive_fillShapes = -27590;
  253. { validation memory block errors }
  254.         indirect_memory_block_too_small = -27589;
  255.         indirect_memory_block_too_large = -27588;
  256.         unexpected_nil_pointer = -27587;
  257.         bad_address = -27586;
  258. { validation object errors }
  259.         no_owners = -27585;
  260.         invalid_pointer = -27584;
  261.         invalid_seed = -27583;
  262.         invalid_frame_seed = -27582;
  263.         invalid_text_seed = -27581;
  264.         invalid_draw_seed = -27580;
  265.         bad_private_flags = -27579;
  266. { validation path and polygon errors }
  267.         invalid_vector_count = -27578;
  268.         invalid_contour_count = -27577;
  269. { validation bitmap errors }
  270.         bitmap_ptr_too_small = -27576;
  271.         bitmap_ptr_not_aligned = -27575;
  272.         bitmap_rowBytes_negative = -27574;
  273.         bitmap_width_negative = -27573;
  274.         bitmap_height_negative = -27572;
  275.         invalid_pixelSize = -27571;
  276.         bitmap_rowBytes_too_small = -27570;
  277.         bitmap_rowBytes_not_aligned = -27569;
  278.         bitmap_rowBytes_must_be_specified_for_user_image_buffer = -27568;
  279. { validation bitmap image errors }
  280.         invalid_bitImage_fileOffset = -27567;
  281.         invalid_bitImage_owners = -27566;
  282.         invalid_bitImage_rowBytes = -27565;
  283.         invalid_bitImage_internal_flag = -27564;
  284. { validation text errors }
  285.         text_bounds_cache_wrong_size = -27563;
  286.         text_metrics_cache_wrong_size = -27562;
  287.         text_index_cache_wrong_size = -27561;
  288. { validation glyph errors }
  289.         glyph_run_count_negative = -27560;
  290.         glyph_run_count_zero = -27559;
  291.         glyph_run_counts_do_not_sum_to_character_count = -27558;
  292.         glyph_first_advance_bit_set_not_allowed = -27557;
  293.         glyph_tangent_vectors_both_zero = -27556;
  294. { validation layout errors }
  295.         layout_run_length_negative = -27555;
  296.         layout_run_length_zero = -27554;
  297.         layout_run_level_negative = -27553;
  298.         layout_run_lengths_do_not_sum_to_text_length = -27552;
  299. { validation picture errors }
  300.         bad_shape_in_picture = -27551;
  301.         bad_style_in_picture = -27550;
  302.         bad_ink_in_picture = -27549;
  303.         bad_transform_in_picture = -27548;
  304.         bad_shape_cache_in_picture = -27547;
  305.         bad_seed_in_picture = -27546;
  306.         invalid_picture_count = -27545;
  307. { validation text face errors }
  308.         bad_textLayer_count = -27544;
  309.         bad_fillType_in_textFace = -27543;
  310.         bad_style_in_textFace = -27542;
  311.         bad_transform_in_textFace = -27541;
  312. { validation transform errors }
  313.         invalid_matrix_flag = -27540;
  314.         transform_clip_missing = -27539;
  315. { validation font cache errors }
  316.         metrics_wrong_type = -27538;
  317.         metrics_point_size_probably_bad = -27537;
  318.         scalar_block_wrong_type = -27536;
  319.         scalar_block_parent_mismatch = -27535;
  320.         scalar_block_too_small = -27534;
  321.         scalar_block_too_large = -27533;
  322.         invalid_metrics_range = -27532;
  323.         invalid_metrics_flags = -27531;
  324.         metrics_maxWidth_probably_bad = -27530;
  325.         font_wrong_type = -27529;
  326.         font_wrong_size = -27528;
  327.         invalid_font_platform = -27527;
  328.         invalid_lookup_range = -27526;
  329.         invalid_lookup_platform = -27525;
  330.         font_not_in_font_list = -27524;
  331.         metrics_not_in_metrics_list = -27523;
  332. { validation view device errors }
  333.         bad_device_private_flags = -27522;
  334.         bad_device_attributes = -27521;
  335.         invalid_device_number = -27520;
  336.         invalid_device_viewGroup = -27519;
  337.         invalid_device_bounds = -27518;
  338.         invalid_bitmap_in_device = -27517;
  339. { validation color set errors }
  340.         colorSet_wrong_type = -27516;
  341.         invalid_colorSet_viewDevice_owners = -27515;
  342.         invalid_colorSet_colorSpace = -27514;
  343.         invalid_colorSet_count = -27513;
  344. { validation color profile errors }
  345.         colorProfile_wrong_type = -27512;
  346.         invalid_colorProfile_flags = -27511;
  347.         invalid_colorProfile_response_count = -27510;
  348. { validation internal backing store errors }
  349.         backing_free_parent_mismatch = -27509;
  350.         backing_store_parent_mismatch = -27508;
  351.  
  352. { warnings about warnings }
  353.         warning_stack_underflow = gxFirstSystemWarning;
  354.         warning_stack_overflow = -26998;
  355.         notice_stack_underflow = -26997;
  356.         notice_stack_overflow = -26996;
  357.         about_to_grow_heap = -26995;
  358.         about_to_unload_objects = -26994;
  359. { result went out of range }
  360.         map_shape_out_of_range = gxFirstResultOutOfRangeWarning;
  361.         move_shape_out_of_range = -26949;
  362.         scale_shape_out_of_range = -26948;
  363.         rotate_shape_out_of_range = -26947;
  364.         skew_shape_out_of_range = -26946;
  365.         map_transform_out_of_range = -26945;
  366.         move_transform_out_of_range = -26944;
  367.         scale_transform_out_of_range = -26943;
  368.         rotate_transform_out_of_range = -26942;
  369.         skew_transform_out_of_range = -26941;
  370.         map_points_out_of_range = -26940;
  371. { gave a parameter out of range }
  372.         contour_out_of_range = gxFirstParameterOutOfRangeWarning;
  373.         index_out_of_range_in_contour = -26899;
  374.         picture_index_out_of_range = -26898;
  375.         color_index_requested_not_found = -26897;
  376.         colorSet_index_out_of_range = -26896;
  377.         index_out_of_range = -26895;
  378.         count_out_of_range = -26894;
  379.         length_out_of_range = -26893;
  380.         font_table_index_out_of_range = -26892;
  381.         font_glyph_index_out_of_range = -26891;
  382.         point_out_of_range = -26890;
  383.         profile_response_out_of_range = -26889;
  384. { gxFont scaler warnings }
  385.         font_scaler_no_output = gxFirstFontScalerWarning;
  386.         font_scaler_fake_metrics = -26849;
  387.         font_scaler_fake_linespacing = -26848;
  388.         font_scaler_glyph_substitution = -26847;
  389.         font_scaler_no_kerning_applied = -26846;
  390. { might not be what you expected }
  391.         character_substitution_took_place = -26845;
  392.         unable_to_get_bounds_on_multiple_devices = -26844;
  393.         font_language_not_found = -26843;
  394.         font_not_found_during_unflattening = -26842;
  395. {storage }
  396.         unrecognized_stream_version = -26841;
  397.         bad_data_in_stream = -26840;
  398.  
  399. { nonsense data }
  400.         new_shape_contains_invalid_data = gxFirstSystemDebuggingWarning;
  401.         new_tag_contains_invalid_data = -26699;
  402.         extra_data_passed_was_ignored = -26698;
  403.         font_table_not_found = -26697;
  404.         font_name_not_found = -26696;
  405. { doesn't make sense to do }
  406.         unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve = -26695;
  407.         unable_to_draw_open_contour_that_starts_or_ends_off_the_curve = -26694;
  408.         cannot_dispose_default_shape = -26693;
  409.         cannot_dispose_default_style = -26692;
  410.         cannot_dispose_default_ink = -26691;
  411.         cannot_dispose_default_transform = -26690;
  412.         cannot_dispose_default_colorProfile = -26689;
  413.         cannot_dispose_default_colorSet = -26688;
  414.         shape_direct_attribute_not_set = -26687;
  415. { couldn't find what you were looking for }
  416.         point_does_not_intersect_port = -26686;
  417.         cannot_dispose_non_font = -26685;
  418.         face_override_style_font_must_match_style = -26684;
  419.         union_of_area_and_length_returns_area_only = -26683;
  420.         insufficient_coordinate_space_for_new_device = -26682;
  421. { other }
  422.         shape_passed_has_no_bounds = -26681;
  423.         tags_of_type_flst_removed = -26680;
  424.         translator_not_installed_on_this_grafport = -26679;
  425.  
  426.         parameters_have_no_effect = gxFirstSystemNotice;
  427.         attributes_already_set = -25998;
  428.         caps_already_set = -25997;
  429.         clip_already_set = -25996;
  430.         color_already_set = -25995;
  431.         curve_error_already_set = -25994;
  432.         dash_already_set = -25993;
  433.         default_colorProfile_already_set = -25992;
  434.         default_ink_already_set = -25991;
  435.         default_transform_already_set = -25990;
  436.         default_shape_already_set = -25989;
  437.         default_style_already_set = -25988;
  438.         dither_already_set = -25987;
  439.         encoding_already_set = -25986;
  440.         face_already_set = -25985;
  441.         fill_already_set = -25984;
  442.         font_already_set = -25983;
  443.         font_variations_already_set = -25982;
  444.         glyph_positions_are_already_set = -25981;
  445.         glyph_tangents_are_already_set = -25980;
  446.         halftone_already_set = -25979;
  447.         hit_test_already_set = -25978;
  448.         ink_already_set = -25977;
  449.         join_already_set = -25976;
  450.         justification_already_set = -25975;
  451.         mapping_already_set = -25974;
  452.         pattern_already_set = -25973;
  453.         pen_already_set = -25972;
  454.         style_already_set = -25971;
  455.         tag_already_set = -25970;
  456.         text_attributes_already_set = -25969;
  457.         text_size_already_set = -25968;
  458.         transfer_already_set = -25967;
  459.         translator_already_installed_on_this_grafport = -25966;
  460.         transform_already_set = -25965;
  461.         type_already_set = -25964;
  462.         validation_level_already_set = -25963;
  463.         viewPorts_already_set = -25962;
  464.         viewPort_already_in_viewGroup = -25961;
  465.         viewDevice_already_in_viewGroup = -25960;
  466.         geometry_unaffected = -25959;
  467.         mapping_unaffected = -25958;
  468.         tags_in_shape_ignored = -25957;
  469.         shape_already_in_primitive_form = -25956;
  470.         shape_already_in_simple_form = -25955;
  471.         shape_already_broken = -25954;
  472.         shape_already_joined = -25953;
  473.         cache_already_cleared = -25952;
  474.         shape_not_disposed = -25951;
  475.         style_not_disposed = -25950;
  476.         ink_not_disposed = -25949;
  477.         transform_not_disposed = -25948;
  478.         colorSet_not_disposed = -25947;
  479.         colorProfile_not_disposed = -25946;
  480.         font_not_disposed = -25945;
  481.         glyph_tangents_have_no_effect = -25944;
  482.         glyph_positions_determined_by_advance = -25943;
  483.         transform_viewPorts_already_set = -25942;
  484.         directShape_attribute_set_as_side_effect = -25941;
  485.         lockShape_called_as_side_effect = -25940;
  486.         lockTag_called_as_side_effect = -25939;
  487.         shapes_unlocked_as_side_effect = -25938;
  488.         shape_not_locked = -25937;
  489.         tag_not_locked = -25936;
  490.         profile_not_locked = tag_not_locked;
  491.         lockProfile_called_as_side_effect = lockTag_called_as_side_effect;
  492.         disposed_dead_caches = -25935;
  493.         disposed_live_caches = -25934;
  494.         low_on_memory = -25933;
  495.         very_low_on_memory = -25932;
  496.         transform_references_disposed_viewPort = -25931;
  497.  
  498.  
  499.     type
  500.         gxGraphicsError = LONGINT;
  501.  
  502.         gxGraphicsWarning = LONGINT;
  503.  
  504.         gxGraphicsNotice = LONGINT;
  505.  
  506.         gxUserErrorProcPtr = ProcPtr;  { PROCEDURE gxUserError(status: gxGraphicsError; refcon: LONGINT); }
  507.         gxUserWarningProcPtr = ProcPtr;  { PROCEDURE gxUserWarning(status: gxGraphicsWarning; refcon: LONGINT); }
  508.         gxUserNoticeProcPtr = ProcPtr;  { PROCEDURE gxUserNotice(status: gxGraphicsNotice; refcon: LONGINT); }
  509.         gxUserErrorUPP = UniversalProcPtr;
  510.         gxUserWarningUPP = UniversalProcPtr;
  511.         gxUserNoticeUPP = UniversalProcPtr;
  512.  
  513.     const
  514.         uppgxUserErrorProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  515.         uppgxUserWarningProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  516.         uppgxUserNoticeProcInfo = $000003C1; { PROCEDURE (4 byte param, 4 byte param); }
  517.  
  518.     function NewgxUserErrorProc (userRoutine: gxUserErrorProcPtr): gxUserErrorUPP;
  519.     {$IFC NOT GENERATINGCFM }
  520.     inline
  521.         $2E9F;
  522.     {$ENDC}
  523.  
  524.     function NewgxUserWarningProc (userRoutine: gxUserWarningProcPtr): gxUserWarningUPP;
  525.     {$IFC NOT GENERATINGCFM }
  526.     inline
  527.         $2E9F;
  528.     {$ENDC}
  529.  
  530.     function NewgxUserNoticeProc (userRoutine: gxUserNoticeProcPtr): gxUserNoticeUPP;
  531.     {$IFC NOT GENERATINGCFM }
  532.     inline
  533.         $2E9F;
  534.     {$ENDC}
  535.  
  536.     procedure CallgxUserErrorProc (status: gxGraphicsError; refcon: LONGINT; userRoutine: gxUserErrorUPP);
  537.     {$IFC NOT GENERATINGCFM}
  538.     inline
  539.         $205F, $4E90;
  540.     {$ENDC}
  541.  
  542.     procedure CallgxUserWarningProc (status: gxGraphicsWarning; refcon: LONGINT; userRoutine: gxUserWarningUPP);
  543.     {$IFC NOT GENERATINGCFM}
  544.     inline
  545.         $205F, $4E90;
  546.     {$ENDC}
  547.  
  548.     procedure CallgxUserNoticeProc (status: gxGraphicsNotice; refcon: LONGINT; userRoutine: gxUserNoticeUPP);
  549.     {$IFC NOT GENERATINGCFM}
  550.     inline
  551.         $205F, $4E90;
  552.     {$ENDC}
  553.  
  554.     type
  555.         gxUserErrorFunction = gxUserErrorUPP;
  556.  
  557.         gxUserWarningFunction = gxUserWarningUPP;
  558.  
  559.         gxUserNoticeFunction = gxUserNoticeUPP;
  560.  
  561.  
  562.     const
  563.         common_colors_not_initialized = gxFirstLibraryError;
  564.         no_open_picture = 1048577;
  565.         picture_already_open = 1048578;
  566.         no_open_poly = 1048579;
  567.         poly_already_open = 1048580;
  568.         no_open_region = 1048581;
  569.         region_already_open = 1048582;
  570.         no_active_picture = 1048583;
  571.  
  572.         no_picture_drawn = gxFirstLibraryWarning;
  573.         polygons_have_different_size_contours = 4194305;
  574.         graphic_type_cannot_be_specifed_by_four_values = 4194306;
  575.         graphic_type_cannot_be_specifed_by_six_values = 4194307;
  576.         point_expected = 4194308;
  577.         line_or_rectangle_expected = 4194309;
  578.         curve_expected = 4194310;
  579.         graphic_type_does_not_contain_control_bits = 4194311;
  580.         request_exceeds_available_data = 4194312;
  581.         extra_data_unread = 4194313;
  582.         no_variable_length_user_data_saved = 4194314;
  583.  
  584.         zero_length_string_passed = gxFirstLibraryNotice;
  585.  
  586. {$SETC graphicsDebuggingIncludes := 1}
  587. { These levels tell how to validate routines.  Choose one. }
  588.         gxNoValidation = $00;                            { no validation }
  589.         gxPublicValidation = $01;                            { check parameters to public routines }
  590.         gxInternalValidation = $02;                            { check parameters to internal routines }
  591. { These levels tell how to validate types.  Choose one. }
  592.         gxTypeValidation = $00;                            { check types of objects }
  593.         gxStructureValidation = $10;                            { check fields of private structures }
  594.         gxAllObjectValidation = $20;                            { check every object over every call }
  595. { These levels tell how to validate memory manager blocks.  Choose any combination. }
  596.         gxNoMemoryManagerValidation = $0000;
  597.         gxApBlockValidation = $0100;                        { check the relevant block structures after each memory mgr. call }
  598.         gxFontBlockValidation = $0200;                        { check the system gxHeap as well }
  599.         gxApHeapValidation = $0400;                        { check the memory manager’s gxHeap after every mem. call }
  600.         gxFontHeapValidation = $0800;                        { check the system gxHeap as well }
  601.         gxCheckApHeapValidation = $1000;                        { check the memory manager’s gxHeap if checking routine parameters }
  602.         gxCheckFontHeapValidation = $2000;                        { check the system gxHeap as well }
  603.  
  604.  
  605.     type
  606.         gxValidationLevel = LONGINT;
  607.  
  608.  
  609.     const
  610.         no_draw_error = 0;
  611. { gxShape type errors }
  612.         shape_emptyType = 1;
  613.         shape_inverse_fullType = 2;
  614.         rectangle_zero_width = 3;
  615.         rectangle_zero_height = 4;
  616.         polygon_empty = 5;
  617.         path_empty = 6;
  618.         bitmap_zero_width = 7;
  619.         bitmap_zero_height = 8;
  620.         text_empty = 9;
  621.         glyph_empty = 10;
  622.         layout_empty = 11;
  623.         picture_empty = 12;
  624. { general gxShape errors }
  625.         shape_no_fill = 13;
  626.         shape_no_enclosed_area = 14;
  627.         shape_no_enclosed_pixels = 15;
  628.         shape_very_small = 16;
  629.         shape_very_large = 17;
  630.         shape_contours_cancel = 18;
  631. { gxStyle errors }
  632.         pen_too_small = 19;
  633.         text_size_too_small = 20;
  634.         dash_empty = 21;
  635.         start_cap_empty = 22;
  636.         pattern_empty = 23;
  637.         textFace_empty = 24;
  638.         shape_primitive_empty = 25;
  639.         shape_primitive_very_small = 26;
  640. { gxInk errors }
  641.         transfer_equals_noMode = 27;
  642.         transfer_matrix_ignores_source = 28;
  643.         transfer_matrix_ignores_device = 29;
  644.         transfer_source_reject = 30;
  645.         transfer_mode_ineffective = 31;
  646.         colorSet_no_entries = 32;
  647.         bitmap_colorSet_one_entry = 33;
  648. { gxTransform errors }
  649.         transform_scale_too_small = 34;
  650.         transform_map_too_large = 35;
  651.         transform_move_too_large = 36;
  652.         transform_scale_too_large = 37;
  653.         transform_rotate_too_large = 38;
  654.         transform_perspective_too_large = 39;
  655.         transform_skew_too_large = 40;
  656.         transform_clip_no_intersection = 41;
  657.         transform_clip_empty = 42;
  658.         transform_no_viewPorts = 43;
  659. { gxViewPort errors }
  660.         viewPort_disposed = 44;
  661.         viewPort_clip_empty = 45;
  662.         viewPort_clip_no_intersection = 46;
  663.         viewPort_scale_too_small = 47;
  664.         viewPort_map_too_large = 48;
  665.         viewPort_move_too_large = 49;
  666.         viewPort_scale_too_large = 50;
  667.         viewPort_rotate_too_large = 51;
  668.         viewPort_perspective_too_large = 52;
  669.         viewPort_skew_too_large = 53;
  670.         viewPort_viewGroup_offscreen = 54;
  671. { gxViewDevice errors }
  672.         viewDevice_clip_no_intersection = 55;
  673.         viewDevice_scale_too_small = 56;
  674.         viewDevice_map_too_large = 57;
  675.         viewDevice_move_too_large = 58;
  676.         viewDevice_scale_too_large = 59;
  677.         viewDevice_rotate_too_large = 60;
  678.         viewDevice_perspective_too_large = 61;
  679.         viewDevice_skew_too_large = 62;
  680.  
  681.  
  682.     type
  683.         gxDrawError = LONGINT;
  684.  
  685.         gxUserDebugFunction = ProcPtr;  { FUNCTION (str: ConstCStringPtr; message: LONGINT; reference: LONGINT): BOOLEAN; }
  686.  
  687.  
  688. {FUNCTION GXGetShapeDrawError(source: gxShape): gxDrawError; C;}
  689. {PROCEDURE GXValidateAll; C;}
  690. {PROCEDURE GXValidateColorSet(target: gxColorSet); C;}
  691. {PROCEDURE GXValidateColorProfile(target: gxColorProfile); C;}
  692. {PROCEDURE GXValidateGraphicsClient(target: gxGraphicsClient); C;}
  693. {PROCEDURE GXValidateInk(target: gxInk); C;}
  694. {PROCEDURE GXValidateShape(target: gxShape); C;}
  695. {PROCEDURE GXValidateStyle(target: gxStyle); C;}
  696. {PROCEDURE GXValidateTag(target: gxTag); C;}
  697. {PROCEDURE GXValidateTransform(target: gxTransform); C;}
  698. {PROCEDURE GXValidateViewDevice(target: gxViewDevice); C;}
  699. {PROCEDURE GXValidateViewPort(target: gxViewPort); C;}
  700. {PROCEDURE GXValidateViewGroup(target: gxViewGroup); C;}
  701. {FUNCTION GXGetValidation: gxValidationLevel; C;}
  702. {PROCEDURE GXSetValidation(level: gxValidationLevel); C;}
  703. {FUNCTION GXGetValidationError(procedureName: CStringPtr; argument: UNIV Ptr; VAR argumentNumber: LONGINT): LONGINT; C;}
  704. {FUNCTION GXGetUserGraphicsDebug(VAR reference: LONGINT): gxUserDebugFunction; C;}
  705. {PROCEDURE GXSetUserGraphicsDebug(userFunction: gxUserDebugFunction; reference: LONGINT); C;}
  706.  
  707. { $ALIGN RESET}
  708. { $POP}
  709.  
  710. {$ENDC}
  711.  {__GXERRORS__}
  712.  
  713. implementation
  714. end.
  715.